package com.csx.springcloud.configcenter.nacos.sample.listener;

import com.alibaba.nacos.api.config.listener.Listener;

import java.util.concurrent.Executor;

/**
 * 当配置发生变更时触发 receiveConfigInfo 的调用
 * @author cuisongxu
 * @date 2024/12/24 周二 17:45
 */
public class NacosConfigListener implements Listener {
    @Override
    public Executor getExecutor() {
        return null;
    }

    @Override
    public void receiveConfigInfo(String configInfo) {
        System.out.println(configInfo);
        System.out.println("配置发生了变更");
    }
}
